/**
 * 
 */
package com.gr.staffpm.feedback.model;

import java.io.Serializable;
import java.util.Date;


/**
 * @author Graham Rhodes 7 Apr 2011 20:48:56
 */
public class FeedbackCount implements Serializable {

    private static final long serialVersionUID = 1L;
    private int stars0 = 0;
    private int stars1 = 0;
    private int stars2 = 0;
    private int stars3 = 0;
    private int stars4 = 0;
    private int stars5 = 0;
    private int starIndex = 0;
    private Date date = null;

    public void set(int count) {
        switch (starIndex) {
            case 0:
                stars0 = count;
                break;
            case 1:
                stars1 = count;
                break;
            case 2:
                stars2 = count;
                break;
            case 3:
                stars3 = count;
                break;
            case 4:
                stars4 = count;
                break;
            case 5:
                stars5 = count;
                break;
        }
        starIndex++;
    }

    public int getStars0() {
        return stars0;
    }

    public void setStars0(int stars0) {
        this.stars0 = stars0;
    }

    public int getStars1() {
        return stars1;
    }

    public void setStars1(int stars1) {
        this.stars1 = stars1;
    }

    public int getStars2() {
        return stars2;
    }

    public void setStars2(int stars2) {
        this.stars2 = stars2;
    }

    public int getStars3() {
        return stars3;
    }

    public void setStars3(int stars3) {
        this.stars3 = stars3;
    }

    public int getStars4() {
        return stars4;
    }

    public void setStars4(int stars4) {
        this.stars4 = stars4;
    }

    public int getStars5() {
        return stars5;
    }

    public void setStars5(int stars5) {
        this.stars5 = stars5;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
